FluentEmogrifier\Vendor\Pelago\Emogrifier\CssInliner C

Total Complexity 114
Dependencies 10
Dependents 2
Total lines 1,005
Lines of code 423
Logical lines of code 256
Comment lines 407
Methods 43
Properties 11

Methods 43

Method Rating Maintainability Complexity Lines of code
inlineCss()
A
47 8 35
collateCssRules()
A
49 7 31
generateStyleStringFromDeclarationsArrays()
S
51 7 25
getNodesToExclude()
S
54 6 20
getCssFromAllStyleNodes()
S
57 5 17
hasUnsupportedPseudoClass()
S
59 5 14
parseCssDeclarationsBlock()
S
57 4 17
getCssSelectorPrecedence()
S
56 4 17
copyUninlinableCssToStyleNode()
S
60 4 13
existsMatchForCssSelector()
S
62 4 11
normalizeStyleAttributes()
S
58 3 15
sortBySelectorPrecedence()
S
67 4 7
removeImportantAnnotationFromNodeInlineStyle()
S
59 3 14
copyInlinableCssToStyleAttribute()
S
61 3 13
removeUnmatchablePseudoComponents()
S
57 2 16
normalizeStyleAttributesOfAllNodes()
S
68 3 8
replaceUnmatchableNotComponent()
S
67 3 7
logOrThrowPregLastError()
S
60 2 12
removeAllowedMediaType()
S
71 2 6
removeExcludedSelector()
S
71 2 6
getMatchingUninlinableCssRules()
S
70 2 6
getAllNodesWithStyleAttribute()
S
66 2 8
getCssSelectorConverter()
S
71 2 6
selectorPartHasUnsupportedOfTypePseudoClass()
S
69 2 6
fillStyleAttributesWithMergedStyles()
S
67 2 7
removeImportantAnnotationFromAllInlineStyles()
S
74 2 5
existsMatchForSelectorInCssRule()
S
69 2 7
removeUnsupportedOfTypePseudoClasses()
S
70 2 6
getHeadElement()
S
67 2 7
pregReplace()
S
67 2 8
disableInlineStyleAttributesParsing()
S
76 1 4
disableStyleBlocksParsing()
S
76 1 4
addAllowedMediaType()
S
76 1 4
addExcludedSelector()
S
76 1 4
setDebug()
S
77 1 4
getMatchingUninlinableSelectors()
S
79 1 3
clearAllCaches()
S
78 1 3
purgeVisitedNodes()
S
77 1 4
attributeValueIsImportant()
S
78 1 3
generateStyleStringFromSingleDeclarationsArray()
S
79 1 3
determineMatchingUninlinableCssRules()
S
73 1 5
removeSelectorComponents()
S
76 1 3
addStyleElementToDocument()
S
65 1 9